package com.itheima.edu.info.manager.day15;

import java.io.*;
import java.util.UUID;
import java.util.concurrent.*;

public class TcpThread {
    public static void main(String[] args) throws IOException {
        //死循环创文件，慎点
        while (true) {
            BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\百度云\\下载\\新建文件夹\\新建文件夹\\新建文件夹\\io.docx"));
            byte[] b = new byte[6666];
            int a;
            BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\jinjie\\实验\\" + UUID.randomUUID() + ".txt"));
            while ((a = bis.read(b)) != -1) {
                bos.write(b);
            }
        }
    }
}
